import requests
from pprint import pprint
import ast
url = "https://pan.baidu.com/rest/2.0/xpan/file?method=list&dir=/apps/text&order=time&start=0&limit=10&web=web&folder=0&access_token=126.c56c6366595dcc417c8a2c0a99e735b2.YmiHXOj071iMcLnenlTyExzPJiZ0ZBb3Xn0qS4Q.xevO2w"

payload = {}
files = {}
headers = {
  'User-Agent': 'pan.baidu.com'
}

response = requests.request("GET", url, headers=headers, data = payload, files = files)
#fileinfo_list = response.text.encode('utf8')
#print(response.text.encode('utf8'))
fileinfo_list = ast.literal_eval(response.text)

print(fileinfo_list["list"])